<?php
//Start session
if (!isset($_SESSION))
{
    session_start();
}
?>
<?php $titleloc = "Create Account";?>
<?php include("includes/header.php"); ?>
<?php
if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) >0 )
{
    echo '<ul class="error">';
    foreach($_SESSION['ERRMSG_ARR'] as $msg)
    {
        echo '<li>',$msg,'</li>';
    }
    echo '</ul>';
    unset($_SESSION['ERRMSG_ARR']);
}
?>
<h2>Create Account</h2>
<form action="registervalidate.php" method="post">
    <table>
        <tr>
            <td><span id="boldsmall">Username:</span></td>
            <td id="inputfield"><input class="post" name="username" id="username" size="25" value="" tabindex="1" type="text"></td>
        </tr>
        <tr>
            <td><span id="boldsmall">Password:</span></td>
            <td id="inputfield"><input class="post" name="password" id="password" size="25" tabindex="2" type="password"></td>
        </tr>
        <tr>
            <td><span id="boldsmall">Retype Password:</span></td>
            <td id="inputfield"><input class="post" name="confirm" id="confirm" size="25" tabindex="3" type="password"></td>
        </tr>
        <tr>
            <td><span id="boldsmall">Email:</span></td>
            <td id="inputfield"><input class="post" name="email" id="email" size="25" value="" tabindex="4" type="text"></td>
        </tr>
        <tr>
            <td height="20" colspan="2">&nbsp;</td>
        </tr>
        <tr>
            <td></td>
            <td id="inputfield"><input type="submit" name="register" class="btnmain" value="Register" /></td>
        </tr>
    </table>
</form>
<?php include("includes/footer.php"); ?>